package br.com.sebrae.pr.sgp.util;

import org.apache.commons.codec.digest.DigestUtils;

/**
 * Classe para criptografia MD5.
 * 
 * @author Tanaka
 * 
 */
public class MD5 {

    /**
     * Criptografa determinada String para MD5
     * 
     * @param text
     * @return
     */
    public static String encode(final String text) {
        return DigestUtils.md5Hex(text);
    }

    public static void main(String[] args) {
        System.out.println(MD5.encode("."));
    }
}
